package com.dongdongshop.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.mapper.TbCitiesMapper;
import com.dongdongshop.pojo.TbAreas;
import com.dongdongshop.pojo.TbCities;
import com.dongdongshop.pojo.TbCitiesExample;
import com.dongdongshop.service.CitiesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description
 * @ClassName CitiesServiceImpl
 * @Author RC
 * @date 2020.12.22 20:32
 */
@Component
@Service
public class CitiesServiceImpl implements CitiesService {
    @Autowired
    private TbCitiesMapper tbCitiesMapper;
    @Override
    public List<TbCities> getCityListByProvinceId(Integer provinceid) {

        return tbCitiesMapper.getCityListByProvinceId(provinceid);
    }

    @Override
    public List<TbCities> getInfoAll() {
        return tbCitiesMapper.selectByExample(null);
    }
}
